<?php

// This file is part of the Carrington Text Theme for WordPress
// http://carringtontheme.com
//
// Copyright (c) 2008-2009 Crowd Favorite, Ltd. All rights reserved.
// http://crowdfavorite.com
//
// Released under the GPL license
// http://www.opensource.org/licenses/gpl-license.php
//
// **********************************************************************
// This program is distributed in the hope that it will be useful, but
// WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 
// **********************************************************************

if (__FILE__ == $_SERVER['SCRIPT_FILENAME']) { die(); }
if (CFCT_DEBUG) { cfct_banner(__FILE__); }

get_header();

?>

<div id="main" role="main">

	<div id='editorial-container'>
	
	<h1 class='editorial-title'>
		<?php
			the_title(); 
		?>
	</h1>
	
	<div class='editorial-images'>
		<?php
		$photos = aldenta_get_images('full');
		
		if ($photos) 
		{
			foreach ($photos as $photo) 
			{
				echo "$photo";
			}
		}else{
			?>
			<img src="<?php bloginfo('template_url') ?>/img/placeholder.jpg">
			<?php
		}
		?>
	</div>
	
		<div class="page-content">
			<?php the_content(); ?>
			
			<form enctype="multipart/form-data" action="/sji/uploader.php" method="POST">
			
			<fieldset>
			  <legend>Please, fill out the following form:</legend>
			  <ol>
			    <li>
			      	<label for="name">Name <em>*</em></label><br />
			      	<input id="name" />
			    </li>
			    
			    <li>
			      	<label for="surname">Last name <em>*</em></label><br />
			      	<input id="surname" />
			    </li>
			   	
			   	<li>
					<input type="hidden" name="MAX_FILE_SIZE" value="100000" /> 
					<label for="resume">Attach Resume <em>*</em></label><br />
					<div id='file-chooser'>Select a file...</div>
					
				 </li>
				 
				 <li>
			      	<label for="notes">Notes</label><br />
			      	<textarea  id="notes"></textarea>
			      	<p>All fields marked with an asterisk (*) are mandatory.</p>
			     </li>
			    
			    <li>
			    	<input type="submit" class='submit' value="Submit" />
			    </li>
			  </ol>
			</fieldset>
			</form>
			
		</div><!--/editorial container-->
	</div><!--/entry-content-->
	<div class="clear"></div>
	<div class="by-line">
		<?php edit_post_link(__('Edit', 'carrington-text'), '<div class="entry-editlink">', '</div>'); ?>
		
	</div><!--/by-line-->
</div><!-- .post -->
    		
<?php
	
	get_footer();
?>